<script>
  import $ from 'dfish-widget'
  import Method from '../Method.vue'

  export default {
    mixins: [Method],
    data() {
      return {
        name: '$.previewImage(images, options)',
        remark: '浏览图片。',
        attrs: [{
          name: 'images',
          remark: '图片地址的数组',
          type: 'String',
        },{
          name: 'options',
          remark: `可选参数：
                  <div><var>current</var>(Number) 默认显示的序号</div>`,
          type: 'String',
        }],
        examples: [{
          remark: '浏览图片，默认显示第二张',
          code: `
            let images = ['./img/qd1.jpg', './img/qd2.jpg']
            $.previewImage(images, {current: 1})
            `
        }]
      }
    }
  }
</script>
